#ifndef INC_01_LOOPLIST_H
#define INC_01_LOOPLIST_H
#include"common.h"

typedef struct {
    node_t head;
    node_t *tail;
    int count;
}LoopList_t;

//创建循环链表
LoopList_t *createLoopList();
//释放循环链表
void releaseLoopList(LoopList_t *table);

//头插
int insertLoopListHead(LoopList_t *table, Element_t value);
//尾插
int insertLoopListTail(LoopList_t *table, Element_t value);

//删除指定元素值
int deleteLoopListValue(LoopList_t *table, Element_t value);

//打印循环链表
void showLoopList(const LoopList_t *table);
#endif //INC_01_LOOPLIST_H
